package com.jt.utils;

import lombok.extern.slf4j.Slf4j;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.net.URL;

/*
 *图片保存工具
 *
 */
@Slf4j
public class PhotoUtils {
    public static String preservePhoto(String photoName, String photoUrl,String type) {
        String photoPath = "D:\\photo\\";
        try {
            BufferedInputStream in = new BufferedInputStream(new URL(photoUrl).openStream());
        } catch (IOException e) {
            log.error(e.getMessage());
            throw new RuntimeException(e);
        }
        return null;
    }
}
